const path  = require("path")
const htmlWebpackPlugin = require("html-webpack-plugin")
const htmlPlugin = new htmlWebpackPlugin({
    template: "./src/index.html",
    filename: "index.html"
})
module.exports = {
    mode: "development",
    entry: path.join(__dirname, "./src/index.js"),
    output: {
        path: path.join(__dirname, "./dist"),
        filename: "bundle.js"

    },
    plugins: [htmlPlugin]

}